package testcodegenerator.methodlevel;

import java.util.ArrayList;
import java.util.List;

import testcasegenerator.TestClassCase;
import testcasegenerator.TestMethodCase;

public class TestClass {

	// field
	private String name;
	private List<TestMethod> meth_list= new ArrayList<TestMethod>();
	
	// method
	public TestClass(String classname) {
		this.name = classname + "Test";
		meth_list = new ArrayList<TestMethod>();
	}
	
	public TestClass(TestClassCase testClassSuite){
		this.name = testClassSuite.getClassName() + "Test";
		
		for(TestMethodCase testmethodsuite : testClassSuite.getTestsuiteList()){
			meth_list.add(new TestMethod(testClassSuite.getClassName(), testmethodsuite));
		}
	}
	
	public void addMethod(TestMethod method) {
		meth_list.add(method);
	}

	public String getClassname() {
		return name;
	}

	public List<TestMethod> getMeth_list() {
		return meth_list;
	}
	
}
